// 基于template/src/widgets/{{appEntities}}/{{ctrls@FORM}}-form/{{spinalCase ctrl.codeName}}-form-vo.ts.hbs生成
import { ControlVOBase } from '@/core';
import { transformValue } from '@/utils';
import { model } from './main-form-model';

export class FormControlVO extends ControlVOBase {
    constructor(data: any) {
        //  表单预置字段
        data.srfwfmemo = data['srfwfmemo'] ? data['srfwfmemo'] : '';
        data.srffrontuf = data['srffrontuf'] ? data['srffrontuf'] : '';
        super(data);
        //  表单自持属性
        this.$ownKeys = ['srfupdatedate', 'srforikey', 'srfkey', 'srfmajortext', 'srftempmode', 'srfuf', 'srfdeid', 'srfsourcekey', 'pibizsample0003name', 'field01', 'ibizsample0003name', 'ibizsample0003id', 'memo', 'pibizsample0003id', 'createman', 'createdate', 'updateman', 'updatedate'];
    }
    get srfupdatedate() {
        return this.$DO.updatedate;
    }
    set srfupdatedate(value: any) {
        this.$DO.updatedate = value;
    }
    get srfkey() {
        return this.$DO.ibizsample0003id;
    }
    set srfkey(value: any) {
        this.$DO.ibizsample0003id = value;
    }
    get srfmajortext() {
        return this.$DO.ibizsample0003name;
    }
    set srfmajortext(value: any) {
        this.$DO.ibizsample0003name = value;
    }
    get pibizsample0003name() {
        return this.$DO.pibizsample0003name;
    }
    set pibizsample0003name(value: any) {
        this.$DO.pibizsample0003name = value;
    }
    get field01() {
        return this.$DO.field01;
    }
    set field01(value: any) {
        this.$DO.field01 = value;
    }
    get ibizsample0003name() {
        return this.$DO.ibizsample0003name;
    }
    set ibizsample0003name(value: any) {
        this.$DO.ibizsample0003name = value;
    }
    get ibizsample0003id() {
        return this.$DO.ibizsample0003id;
    }
    set ibizsample0003id(value: any) {
        this.$DO.ibizsample0003id = value;
    }
    get memo() {
        return this.$DO.memo;
    }
    set memo(value: any) {
        this.$DO.memo = value;
    }
    get pibizsample0003id() {
        return this.$DO.pibizsample0003id;
    }
    set pibizsample0003id(value: any) {
        this.$DO.pibizsample0003id = value;
    }
    get createman() {
        return this.$DO.createman;
    }
    set createman(value: any) {
        this.$DO.createman = value;
    }
    get createdate() {
        return this.$DO.createdate;
    }
    set createdate(value: any) {
        this.$DO.createdate = value;
    }
    get updateman() {
        return this.$DO.updateman;
    }
    set updateman(value: any) {
        this.$DO.updateman = value;
    }
    get updatedate() {
        return this.$DO.updatedate;
    }
    set updatedate(value: any) {
        this.$DO.updatedate = value;
    }
    // 界面主键标识
    get ibizsample0003() {
        return this.$DO.ibizsample0003id;
    }

    set ibizsample0003(value: any) {
        this.$DO.ibizsample0003id = value;
    }

    //  工作流预置字段
    srfwfmemo: any;
    srffrontuf: any;

    //  无实体属性表单项
    get srftempmode() {
        return this.$DO.srftempmode;
    }

    set srftempmode(value: any) {
        this.$DO.srftempmode = value;
    }

    //  表单重复器

    /**
     * 返回后台数据
     *
     * @return {*} 
     * @memberof FormControlVO
     */
	public getDo() {
        return {
            srffrontuf: this.srffrontuf,
            pibizsample0003name: this.$DO.pibizsample0003name,
field01: this.$DO.field01,
ibizsample0003name: this.$DO.ibizsample0003name,
ibizsample0003id: this.$DO.ibizsample0003id,
memo: this.$DO.memo,
pibizsample0003id: this.$DO.pibizsample0003id,
createman: this.$DO.createman,
createdate: this.$DO.createdate,
updateman: this.$DO.updateman,
updatedate: this.$DO.updatedate,
        }
	}

}